<%@ page language="java" contentType="text/html; charset=UTF-8"
   pageEncoding="UTF-8"%>
<%@ page import ="ssi.tools.ShowAnimals" %>
<%@ page import ="ssi.beans.User" %>
<%@ page import ="java.util.ArrayList;" %>
<h2 class="title">Zadoptowane zwierzaki</h2>
<table>
	<%
		User user = (User) session.getAttribute("user");
		ArrayList<String> lista = ShowAnimals.showAdopted(user.getId());
		if(lista.size()==0){ %>
		<p>Nie masz zaadoptowanych zwierzakow</p>
		<%}else{ 
		for(int k=0; k<lista.size();k++){%>
			<%=lista.get(k) %>
		<%}}
	%>
</table>